<!DOCTYPE HTML>
<html>
<head>
<title>WebSocket</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
	Welcome
	<br />
	<button type="button" id="1">1</button>
	<br />
	<button type="button" id="2">2</button>
	<br />
	<button type="button" id="3">3</button>
</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
	$("#1").on("click", function() {
		doSome("1")
	});
	$("#2").on("click", function() {
		doSome("2")
	});
	$("#3").on("click", function() {
		doSome("3")
	});

	function doSome(data) {
		$.ajax({
			url : 'test/t1',
			type : 'post',
			dataType : 'json',
			data : {
				data : data
			},
			success : function(r) {
				console.log(r);
			}
		});
	}
</script>
</html>
